/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package me.yobol.datastructure.basic.list.sequence;

import me.yobol.datastructure.basic.list.Node;

/**
 *
 * @author Yobol
 */
public class SequenceListTest {
    
    public static void main(String[] args) {
        
        SequenceList sl = new SequenceList();
        sl.init();
        
        try {
            System.out.println(sl.size());
            System.out.println(sl.isEmpty());
            System.out.println(sl.isFull());
            
            Node n1 = new Node(1);
            sl.insert(1,n1);
            Node n2 = new Node(2);
            sl.insert(n2);
            Node n3 = new Node(3);
            sl.insert(n3);
            sl.delete(2);
            sl.print();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
